php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#154064 - 06/19/02 07:31 PM [6.3.x] [beta] Avatar Dropdown List v1.1.4
Idle Offline
Member

Registered: 09/17/01
Posts: 307
Loc: Iceland
Title: Avatar Dropdown List

Description: Adds a dropdown list beneath the regular "Select Avatar" link.
Modifies the public edit profile and registrations forms to include before mentioned dropdown list.

Author: Idle
Email: idle@ubbdev.com
Date: June, 20th. 2002
Version: 1.1.4

Requirements: 6.3.0 or newer.
Compatability: 6.3.0 or newer.
Tested On: 6.3.0.1

Download: Text Instructions

Top
#154065 - 06/19/02 11:02 PM Re: [6.3.x] [beta] Avatar Dropdown List v1.1.4
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
You're doing a good job with all your new hacks lately smile

I think that the $vars_config{NonCGIURL} thing shouldn't be anywhere, I don't think it includes it in the UBB.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#154066 - 06/19/02 11:39 PM Re: [6.3.x] [beta] Avatar Dropdown List v1.1.4
Idle Offline
Member

Registered: 09/17/01
Posts: 307
Loc: Iceland
Thanks, I try. smile

I didn't try it without using the NonCGIURL var, but it made sense to me, so I decided to throw it in in the first attempt.

We'll see what happens, I'm not done yet! laugh

Edit: LK, I remember now that I didn't get it to work without using the NonCGIURL var (it is included by UBB, in ultimatebb.cgi, along with the other vars in vars_config. wink ).
It wouldn't link correctly to the images without that var.

Top
#154067 - 06/19/02 11:53 PM Re: [6.3.x] [beta] Avatar Dropdown List v1.1.4
Dark s.s. Trunks Offline
Member

Registered: 04/29/01
Posts: 162
Loc: In the shadows and in your min...
Hey, Good job .

I just installed it and it works perfectly... thumbs up.. !
_________________________
| Dsstcenter | UBB |

Top
#154068 - 06/20/02 07:13 AM Re: [6.3.x] [beta] Avatar Dropdown List v1.1.4
Galactus Offline
Member

Registered: 02/15/00
Posts: 43
Loc: the great cosmos
Thanks again Idle! wink I have my avatars based on historical counterparts and its nice to be able to display the name of the avatar (in the dropdown) so players can also choose one to reflect a particular country or role.

Top
#154069 - 06/20/02 10:10 AM Re: [6.3.x] [beta] Avatar Dropdown List v1.1.4
Hank Offline
Member

Registered: 04/14/01
Posts: 55
Loc: UK
Yup, works well. Good one Idle.
One question, how does one install it so that it works with the Registration Pages too?

Tar muchly.

Top
#154070 - 06/20/02 05:39 PM Re: [6.3.x] [beta] Avatar Dropdown List v1.1.4
Idle Offline
Member

Registered: 09/17/01
Posts: 307
Loc: Iceland
That's a good question, never came to my mind...

Anyways, I've updated the text file with instructions on how to modify public_register_form.pl as well. smile

Top
#154071 - 06/20/02 09:03 PM Re: [6.3.x] [beta] Avatar Dropdown List v1.1.4
Galactus Offline
Member

Registered: 02/15/00
Posts: 43
Loc: the great cosmos
Idle, the dropdown works fine on the Edit Profile page, but not on the registration page (regular templates); all I get is an empty dropdown box on the registration page. Where is it failing to count?

Top
#154072 - 06/20/02 10:54 PM Re: [6.3.x] [beta] Avatar Dropdown List v1.1.4
Idle Offline
Member

Registered: 09/17/01
Posts: 307
Loc: Iceland
Oops!
Forgot to include two required steps. :rolleyes:

Updated instructions, this should function properly now. smile

Top
#154073 - 06/21/02 12:53 AM Re: [6.3.x] [beta] Avatar Dropdown List v1.1.4
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Code:
[/code]. check this out in ubb_profile.cgi:[code]
It means, that if it doesn't include noncgiurl, it checks if it's really on the server.
ubb_lib_posting.cgi:[code][/code]it means that if it doesn't include noncgiurl, it adds it for you, AND checks if it exists. However, it doesn't add Avatars/.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#154074 - 06/21/02 12:58 AM Re: [6.3.x] [beta] Avatar Dropdown List v1.1.4
Idle Offline
Member

Registered: 09/17/01
Posts: 307
Loc: Iceland
That's right.

Well, I take your word for it and give it another try. wink
Then again, I could've been thinking of something else when I got the URLs wrong (double, like http://www.blah.com/ubb/avatars/somepic.jpghttp://www.blah.com etc...).

Alright, enough yapping, I'll get back to it immediately (can't sleep, too hot). laugh

Top
#154075 - 06/21/02 01:19 AM Re: [6.3.x] [beta] Avatar Dropdown List v1.1.4
Idle Offline
Member

Registered: 09/17/01
Posts: 307
Loc: Iceland
Doesn't work (the URL becomes something like: http://www.yourserver.com/cgi-bin/Avatars/avatarname.jpg).

Updated instructions once again (forgot even more steps for modifying ubb_registration.cgi, and fixed the HTML code for public_registration_form.pl (JCTemplates) so the listbox is on a seperate line).

Top
#154076 - 06/21/02 01:23 AM Re: [6.3.x] [beta] Avatar Dropdown List v1.1.4
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
The URL where, in edit profile or posts?

Also, suggestion:[code][/code]Before $avatarname, add u. Then for example "hello" will be "Hello", "avatar number 1" will be "Avatar number 1".
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#154077 - 06/21/02 02:53 AM Re: [6.3.x] [beta] Avatar Dropdown List v1.1.4
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Nice hack Idle. I will install soon. smile

Top
#154078 - 06/21/02 03:41 AM Re: [6.3.x] [beta] Avatar Dropdown List v1.1.4
Idle Offline
Member

Registered: 09/17/01
Posts: 307
Loc: Iceland
LK: In edit profile and registration pages.
Didn't check the posts. :rolleyes:

Mmm, I'll add the capitalize stuff...
need to fix some things in there anyway. wink

Lord Dexter: I don't consider it anything "special", but hey! If that's what people like, I don't see anything wrong with it either. laugh

Top
#154079 - 06/21/02 03:44 AM Re: [6.3.x] [beta] Avatar Dropdown List v1.1.4
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Oh tipsy

So remove that NonCGIURL, and use the following in public_edit_profile.pl:
[code][/code][edit: forgot to add / after NonCGIURL}...]
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#154080 - 06/21/02 06:00 AM Re: [6.3.x] [beta] Avatar Dropdown List v1.1.4
Idle Offline
Member

Registered: 09/17/01
Posts: 307
Loc: Iceland
Nice, thanks!
I'll update the instructions in a minute. smile

Top
#154081 - 06/21/02 06:33 AM Re: [6.3.x] [beta] Avatar Dropdown List v1.1.4
Idle Offline
Member

Registered: 09/17/01
Posts: 307
Loc: Iceland
Alright!

Some code cleanups 'n fixes in this version.

If the member has previously chosen an avatar and edits his profile, his/her current avatar will be selected in the list.

Thanks to LK for the Javascript cleanup (gets rid of bunch of extra text!).

If you're "upgrading" from previous releases of this mod, all you should need to do is replace the function in ubb_lib_misc.cgi with the updated one in the instructions, and the first step in ubb_profile.cgi.

Oh, not to mention replace the Javascript snippet in the templates (public_register_form.pl and public_edit_profile.pl).

Top
#154082 - 06/21/02 08:50 AM Re: [6.3.x] [beta] Avatar Dropdown List v1.1.4
Galactus Offline
Member

Registered: 02/15/00
Posts: 43
Loc: the great cosmos
Thanks guys, it works now!

Although, for my board I had to change a line in ubb_lib_misc.cgi:

Code:
[/code]...needed to have "$vars_config{NonCGIURL}/" added before "Avatar/$avataritem":

[code]

Top
#154083 - 06/21/02 10:22 AM Re: [6.3.x] [beta] Avatar Dropdown List v1.1.4
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Ahem, that's what we were exactly REMOVING, you know!! tipsy

Idle, you forgot to add the $vars_config{NonCGIURL} thing to regular templates, you only added to JCTemplates.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
Page 1 of 2 1 2 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks